//
//  GWNewsCell.m
//  无限滚动Demo
//
//  Created by qianfeng on 16/3/1.
//  Copyright (c) 2016年 高炜. All rights reserved.
//

#import "GWNewsCell.h"
#import "GWNews.h"
@interface GWNewsCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end
@implementation GWNewsCell

- (void)awakeFromNib {
    // Initialization code
}

-(void)setNews:(GWNews *)news
{
    
    _news =news;
    self.titleLabel.text =[NSString stringWithFormat:@"  %@",news.title];
    self.imageView.image =[UIImage imageNamed:news.icon];
}
@end
